import request from '@/utils/request'

// 获取诊断模板列表
export function getDiagnosisTemplates(params?: any) {
  return request({
    url: '/api/doctor/diagnosis-templates/',
    method: 'get',
    params
  })
}

// 创建诊断模板
export function createDiagnosisTemplate(data: any) {
  return request({
    url: '/api/doctor/diagnosis-templates/',
    method: 'post',
    data
  })
}

// 更新诊断模板
export function updateDiagnosisTemplate(id: number, data: any) {
  return request({
    url: `/api/doctor/diagnosis-templates/${id}/`,
    method: 'put',
    data
  })
}

// 删除诊断模板
export function deleteDiagnosisTemplate(id: number) {
  return request({
    url: `/api/doctor/diagnosis-templates/${id}/`,
    method: 'delete'
  })
} 